package com.wan.personnel2.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor

public class EmployeeInf extends Model<EmployeeInf> {

    private static final long serialVersionUID = 1L;

    private Integer id;

    @TableField("deptId")
    private Integer deptId;

    @TableField("jobId")
    private Integer jobId;

    private String name;

    @TableField("cardId")
    private String cardId;

    private String address;

    @TableField("postCode")
    private String postCode;

    private String tel;

    private String phone;

    @TableField("qqNum")
    private String qqNum;

    private String email;

    private Integer sex;

    private String party;

    private String birthday;

    private String race;

    private String education;

    private String speciality;

    private String hobby;

    private String remark;

    @TableField("createDate")
    private String createDate;

    private String password;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }
    public Integer getJobId() {
        return jobId;
    }

    public void setJobId(Integer jobId) {
        this.jobId = jobId;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public String getPostCode() {
        return postCode;
    }

    public void setPostCode(String postCode) {
        this.postCode = postCode;
    }
    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getQqNum() {
        return qqNum;
    }

    public void setQqNum(String qqNum) {
        this.qqNum = qqNum;
    }
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }
    public String getParty() {
        return party;
    }

    public void setParty(String party) {
        this.party = party;
    }
    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }
    public String getRace() {
        return race;
    }

    public void setRace(String race) {
        this.race = race;
    }
    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }
    public String getSpeciality() {
        return speciality;
    }

    public void setSpeciality(String speciality) {
        this.speciality = speciality;
    }
    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "EmployeeInf{" +
            "id=" + id +
            ", deptId=" + deptId +
            ", jobId=" + jobId +
            ", name=" + name +
            ", cardId=" + cardId +
            ", address=" + address +
            ", postCode=" + postCode +
            ", tel=" + tel +
            ", phone=" + phone +
            ", qqNum=" + qqNum +
            ", email=" + email +
            ", sex=" + sex +
            ", party=" + party +
            ", birthday=" + birthday +
            ", race=" + race +
            ", education=" + education +
            ", speciality=" + speciality +
            ", hobby=" + hobby +
            ", remark=" + remark +
            ", createDate=" + createDate +
            ", password=" + password +
        "}";
    }
}
